# coding=utf-8
from .. import db
from .base import BaseModel


class XInfo(BaseModel):
    __tablename__ = 'x_info'
    title = db.Column(db.String(64))
    signature = db.Column(db.Text)
    navbar = db.Column(db.String(64))

    @staticmethod
    def insert_blog_info():
        xshare_info = XInfo(title=u'nxshare',
                            signature=u'轻松分享你的内容！',
                            navbar='inverse')
        db.session.add(xshare_info)
        db.session.commit()
